From: Carlos Garnacho Date: Sat, 23 Apr 2022 17:51:11 +0000 (+0200) Subject: padOsd: Set menu manager on actions popup menu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~480^2^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1c9528391338d2f8b60fe790eb78e999c4950ad5;p=gnome-shell.git padOsd: Set menu manager on actions popup menu Menus do need a menu manager to handle grabs for them, this is more necessary now that the padOsd do also push a Clutter.Grab. Part-of: --- diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js index 065df4778..e23213ccf 100644 --- a/js/ui/padOsd.js +++ b/js/ui/padOsd.js @@ -144,6 +144,9 @@ var ActionComboBox = GObject.registerClass({ this._editMenu.actor.hide(); Main.uiGroup.add_actor(this._editMenu.actor); + this._editMenuManager = new PopupMenu.PopupMenuManager(this); + this._editMenuManager.addMenu(this._editMenu); + this._actionLabels = new Map(); this._actionLabels.set(GDesktopEnums.PadButtonAction.NONE, _("Application defined")); this._actionLabels.set(GDesktopEnums.PadButtonAction.HELP, _("Show on-screen help"));